﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TransCode.Entitys
{
    [Serializable]
    public class Job
    {
        public string Id { get; set; }
        /// <summary>
        /// 0:等待 1:正在执行 2:执行成功 -1:失败
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 视频文件的名字
        /// </summary>
        public string Filename { get; set; }

        /// <summary>
        /// 服务器
        /// </summary>
        public Server Server { get; set; }
        
        
        private List<Task> _taskList = new List<Task>();
        /// <summary>
        /// 子任务列表
        /// </summary>
        public List<Task> TaskList { get { return _taskList; } set { _taskList = value; } }
    }
}
